import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    heart_statu:110,
    tnb_statu:110,
    // 向后端传输
    user_id:1,
    // gja传输校验
    is_post:1,
    first:0,
    second:0,
    num:1
  },
  getters: {
  },
  mutations: {
    heart_statu_save(state,parms){
      state.heart_statu = parms
    },
    tnb_statu_save(state,parms){
      state.tnb_statu = parms
    },
    user_id_add(state){
      state.user_id++
    },
    set_zero(state){
      state.is_post=0
    },
    set_first(state,parms){
      state.first=parms
    },
    set_second(state,parms){
      state.second=parms
    },
    exchange_2_to_1(state){
      state.first=state.second
    },
    add_num(state){
      state.num++
    }
    
  },
  actions: {
  },
  modules: {
  }
})
